<?php
namespace app\Exception;

/**
 *  空数据 通用类
 */
class EmptyException extends BaseException
{
    public $status = 302;
    public $errorMsg = '数据不存在';
    public $errorCode = 20000;

    public function __construct($params = []){
        if(!is_array($params)) return;
        if(array_key_exists('status', $params)) $this->status = $params['status'];
        if(array_key_exists('errorMsg', $params)) $this->errorMsg = $params['errorMsg'];
        if(array_key_exists('errorCode', $params)) $this->errorCode = $params['errorCode'];
    }
}